package com.sooth.system.datasource.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import lombok.Data;

import java.sql.Types;

/**
 * @Description: 数据源管理
 * @Author: Lion Li
 * @Date: 2023-09-29 21:22:39
 */
@Data
@Table("sys_datasource")
public class SysDataSource {


    /**
     * 主键
     */
    @Id
    @Column(value = "id", jdbcType = Types.BIGINT)
    private Long id;

    /**
     * 租户编号
     */
    @Column(value = "tenant_id", jdbcType = Types.VARCHAR)
    private String tenantId;

    /**
     * 数据源名称
     */
    @Column(value = "datasource_name", jdbcType = Types.VARCHAR)
    private String datasourceName;

    /**
     * 数据源地址
     */
    @Column(value = "url", jdbcType = Types.LONGVARCHAR)
    private String url;

    /**
     * 用户名
     */
    @Column(value = "username", jdbcType = Types.VARCHAR)
    private String username;

    /**
     * 密码
     */
    @Column(value = "password", jdbcType = Types.VARCHAR)
    private String password;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @Column(value = "del_flag", jdbcType = Types.INTEGER)
    private Integer delFlag;

    /**
     * 创建者
     */
    @Column(value = "create_by", jdbcType = Types.BIGINT)
    private Long createBy;

    /**
     * 创建时间
     */
    @Column(value = "create_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date createTime;

    /**
     * 更新者
     */
    @Column(value = "update_by", jdbcType = Types.BIGINT)
    private Long updateBy;

    /**
     * 更新时间
     */
    @Column(value = "update_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date updateTime;
}
